import React from 'react';
//函数组件的类型
//函数组件的类型用React.FunctionComponent
//FC和FunctionComponent等价，参数是props,返回值是ReactNode
interface AaaProps {
  name: string;
  content: React.ReactNode;
}

const Aaa: React.FunctionComponent<AaaProps> = (props) => {
  return (
    <>
      <div>{props.name}</div>
      <div>{props.content}</div>
    </>
  );
};

export default Aaa;
